package edu.scut.course_management.po;

import java.util.Date;

/**
 * 持久化对象：作业
 * @author huaming
 */
public class Homework {
    
    private Integer homeworkId;
    private String homeworkTitle;
    private String homeworkContent;
    private Date publishTime;
    private Date deadline;

    public Integer getHomeworkId() {
        return homeworkId;
    }
    public void setHomeworkId(Integer homeworkId) {
        this.homeworkId = homeworkId;
    }

    public String getHomeworkTitle() {
        return homeworkTitle;
    }

    public void setHomeworkTitle(String homeworkTitle) {
        this.homeworkTitle = homeworkTitle;
    }
    
    public String getHomeworkContent() {
        return homeworkContent;
    }

    public void setHomeworkContent(String homeworkContent) {
        this.homeworkContent = homeworkContent;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public Date getDeadline() {
        return deadline;
    }

    public void setDeadline(Date deadline) {
        this.deadline = deadline;
    }

    @Override
    public String toString() {
        return "Homework{" +
               ", homeworkId=" + homeworkId +
               ", homeworkTitle=" + homeworkTitle +
               ", homeworkContent=" + homeworkContent +
               ", publishTime="  + publishTime +
               ", deadline=" +deadline + 
               "}";
    }
}
